var shortDataTypes = require("../lib/sequelizex").DataTypes;
module.exports = (sequelize,DataTypes) => {
    return sequelize.define("Record",{
        /**
         * 0：签退
         * 1：签到
         */
        type : shortDataTypes.Int()
    },{
        timestamps : true,
        associate : function(models){
            models.Record.belongsTo(models.Employee,{foreignKey: "EmployeeId"});
        }
    });
};